﻿<%@ Page Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="edit.aspx.cs"
    Inherits="WebUI.Pages.edit" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphContent" runat="server">
    <script type="text/javascript">
        function onOk() {

        }
    </script>
    <div id="content">
        <table id="Solicitacao">
            <tr>
                <td colspan="2">
                    <h2>
                        Editar a solicitação
                    </h2>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                    <asp:Label ID="lblStatusID" runat="server" Font-Italic="True" Font-Size="Small" Visible="false"></asp:Label>
                    <asp:Label ID="lblAnalistaID" runat="server" Font-Italic="True" Font-Size="Small"
                        Visible="false"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblStatus" runat="server" Font-Italic="True" Font-Size="Small"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <span>ID da Solicitação: </span>
                </td>
                <td>
                    <span>
                        <asp:Label ID="lblIDSolicitacao" runat="server" Style="font-weight: 700"></asp:Label></span>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    Título da Oportunidade:
                </td>
                <td>
                    <asp:TextBox ID="txtTitulo" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    nº da Proposta:
                </td>
                <td>
                    <asp:TextBox ID="txtProposta" runat="server" Width="70px"></asp:TextBox>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:Label ID="lblCriador" runat="server" Text="" Visible="false"></asp:Label>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    Tipo de Solicitação:
                </td>
                <td>
                    <asp:DropDownList ID="ddlTipo" runat="server">
                    </asp:DropDownList>
                    <asp:Label ID="lblTipoID" runat="server" Font-Italic="True" Font-Size="Small" Visible="false"></asp:Label>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    Data da Solicitação:
                </td>
                <td>
                    <asp:Label ID="lblDataSolicitacao" runat="server" Text=""></asp:Label>
                </td>
                <td>
                    <asp:Button ID="cmdSalvar" runat="server" Text="Salvar alterações" OnClick="cmdSalvar_Click"
                        Width="150px" />
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    Estágio da Venda:
                </td>
                <td>
                    <asp:DropDownList ID="ddlEstagioVenda" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    Data Expectativa:
                </td>
                <td>
                    <asp:Label ID="lblDataExpectativa" runat="server" Text=""></asp:Label>
                </td>
                <td>
                    <span>
                        <asp:Button ID="cmdEncerrar" runat="server" Text="Encerrar Solicitacao" OnClick="cmdEncerrar_Click"
                            Width="150px" />
                        <asp:ModalPopupExtender ID="cmdEncerrar_ModalPopupExtender" runat="server" PopupControlID="modalEntrega"
                            DynamicServicePath="" Enabled="True" TargetControlID="cmdEncerrar" BackgroundCssClass="modalBackground"
                            DropShadow="true" OkControlID="cmdClose_" OnOkScript="onOk()" CancelControlID="Button3"
                            PopupDragHandleControlID="Panel3">
                        </asp:ModalPopupExtender>
                    </span>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    Analista de Negócios:
                </td>
                <td>
                    <asp:Label ID="lblAnalistaNegocios" runat="server"></asp:Label>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;Data Revisada:
                </td>
                <td>
                    <asp:TextBox ID="txtDataRevisada" runat="server" Width="150px"></asp:TextBox>
                    <asp:CalendarExtender ID="txtDataRevisada_CalendarExtender" runat="server" Enabled="True"
                        TargetControlID="txtDataRevisada">
                    </asp:CalendarExtender>
                </td>
                <td>
                    <span>
                        <asp:Button ID="cmdDesignar" runat="server" Text="Designar AN" Width="150px" />
                        <asp:ModalPopupExtender ID="MPe2" runat="server" TargetControlID="cmdDesignar" PopupControlID="modalDesigna"
                            BackgroundCssClass="modalBackground" DropShadow="true" OkControlID="cmdClose"
                            OnOkScript="onOk()" CancelControlID="Button2" PopupDragHandleControlID="Panel3" />
                    </span>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    Gerente de Contas:
                </td>
                <td>
                    <asp:DropDownList ID="ddlAccountManager" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    Cliente:
                </td>
                <td>
                    <asp:Label ID="lblCliente" runat="server" Text=""></asp:Label>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    Fabricante:
                </td>
                <td>
                    <asp:DropDownList ID="ddlFabricante" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    Descrição:
                </td>
                <td colspan="5" rowspan="3">
                    <asp:TextBox ID="txtDescricao" runat="server" Width="600px" Height="200px" TextMode="MultiLine"></asp:TextBox>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    Histórico:
                </td>
                <td colspan="5">
                    <asp:Repeater ID="rpHistorico" runat="server">
                        <HeaderTemplate>
                        </HeaderTemplate>
                        <ItemTemplate>
                            (<%# Eval("EnviadoEm") %>)
                            <%# Eval("EnviadoPor") %>:
                            <br />
                            <textarea cols="1" rows="10" class="txtarea" readonly="readonly"> <%# Eval("Historico") %> </textarea>
                            <br />
                        </ItemTemplate>
                        <FooterTemplate>
                        </FooterTemplate>
                    </asp:Repeater>
                </td>
                <td valign="bottom">
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td colspan="5">
                    <asp:TextBox ID="txtHistorico" runat="server" Width="500px" Height="100px" TextMode="MultiLine"></asp:TextBox>
                    &nbsp;<asp:Button ID="cmdSalvaHistorico" runat="server" Text="salvar" OnClick="cmdSalvaHistorico_Click" />
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
        &nbsp;&nbsp;&nbsp;
    </div>
    <asp:Panel ID="modalDesigna" runat="server" Height="500px" Width="450px" CssClass="modalPopup">
        <table width="100%">
            <tr align="right">
                <td>
                    <asp:ImageButton ID="cmdClose" runat="server" ImageUrl="../App_Themes/Images/cross.png" />
                </td>
            </tr>
        </table>
        <h4>
            Designar um Analista de Negócios</h4>
        Selecione um Analista de Negócios
        <asp:Label ID="lblSugerido" runat="server" Text=""></asp:Label>
        <br />
        <asp:RadioButtonList ID="rdlAnalistaNegocios" runat="server">
        </asp:RadioButtonList>
        <br />
        <asp:Button ID="cmdDesigna_" runat="server" Text="Continuar" OnClick="cmdDesigna__Click" />
        &nbsp;<asp:Button ID="Button2" runat="server" Text="Cancelar" />
    </asp:Panel>
    <asp:Panel ID="modalEntrega" runat="server" Height="250px" Width="450px" CssClass="modalPopup">
        <table width="100%">
            <tr align="right">
                <td>
                    <asp:ImageButton ID="cmdClose_" runat="server" ImageUrl="../App_Themes/Images/cross.png" />
                </td>
            </tr>
        </table>
        <h4>
            Encerrar a solicitação</h4>
        <p>
            Fique a vontade para fazer as observações finais:</p>
        <asp:TextBox ID="txtObservacao" runat="server" Height="50px" TextMode="MultiLine"
            Width="430px"></asp:TextBox>
        <br />
        <br />
        <asp:Button ID="cmdEncerra" runat="server" Text="Continuar" OnClick="cmdEncerrar_Click" />
        <asp:Button ID="Button3" runat="server" Text="Cancelar" />
    </asp:Panel>
    <asp:Panel ID="Panel3" runat="server" Height="150px" Width="450px">
    </asp:Panel>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="cphTop">
    <span>
        <asp:Label ID="lblMsg" runat="server" Style="font-weight: 700"></asp:Label>
    </span>
</asp:Content>
